package com.liukai.exam.mapper;

import com.liukai.exam.pojo.JudgeQuestion;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 判断题题库 Mapper 接口
 * </p>
 *
 * @author liu kai
 * @since 2021-02-01
 */
@Mapper
public interface JudgeQuestionMapper extends BaseMapper<JudgeQuestion> {

    /**
     * 根据教师编号和班级编号查找出该教师编写的试卷中判断题的数目
     *
     * @param teacherId
     * @param classId
     * @return
     */
    int judgeQuestionById(Long teacherId, Integer classId);

}
